package hxy.dragon.rpc.impl;


import hxy.dragon.rpc.HelloService;

import java.rmi.RemoteException;
import java.rmi.server.UnicastRemoteObject;

public class HelloServiceImpl extends UnicastRemoteObject implements HelloService {
    public HelloServiceImpl() throws RemoteException {
        super();
    }

    @Override
    public String hello(String name) throws RemoteException {
        System.out.println("Received name: " + name);
        return "你好，" + name;
    }
}
